﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Create.ascx.vb" Inherits="Control_Feedback_Create" %>
<script type="text/javascript">
    //Kiem tra ki tu
    function isNumberKey(evt) {
        var charCode = (evt.which) ? evt.which : event.keyCode
        if (charCode > 31 && (charCode < 48 || charCode > 57)) return false;

        return true;
    }
</script>
<div class="row">
    <div class="col-xs-12">
        <div class="porlet-main padding-fix box-shadow panel-corner">
            <div class="row-titlemain">
                <div class="text-titlemain">
                    <h5>
                    <img src="images/icon_thongbao.png" border="0" align="absmiddle">
                        <asp:HyperLink ID="hplTitle" runat="server" Text="ĐÓNG GÓP Ý KIẾN"></asp:HyperLink>
                    </h5>
                </div>
            </div>
            <div class="text-content-feeback">
                <div class="bgcontent_porletinfo">
                    <div style="text-align: justify; padding: 10px">
                        <div>
                            <asp:Label ID="lblContent" runat="server"></asp:Label>
                        </div>
                        <div class="lblEdit">
                            <asp:Literal ID="ltlFeedbackLabel" runat="server" Text="Hãy đóng góp các ý kiến quý báu của bạn bằng cách nhập vào mẫu form bên dưới:"></asp:Literal>
                        </div>
                        <div class="DivRequired">
                            <asp:Literal ID="ltlRequiredToEnterLabel" runat="server" Text="Trường yêu cầu nhập dữ liệu"></asp:Literal>
                            <span class="fieldRequired">&nbsp;</span>
                        </div>
                        <div class="Error">
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                        </div>
                        <div class="lblEdit">
                            <asp:Label ID="lblCustomerName_edit" runat="server" Text="Tên của bạn:" />
                        </div>
                        <div style="height: 40px">
                            <asp:TextBox ID="txtCustomerName" CssClass="TextBox form-control" runat="server"
                                Text="" Width="350px" /><span class="fieldRequired">&nbsp;</span>
                            <%  If Session("LanguageId") = 1 Then
                            %>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCustomerName"
                                ErrorMessage="Hãy nhập tên của bạn" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Hãy nhập email của bạn"
                                SetFocusOnError="True" Display="None" ControlToValidate="txtCustomerEmail"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtCustomerEmail"
                                ErrorMessage="Định dạng email chưa đúng" Display="None" SetFocusOnError="True"
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" Display="None" runat="server"
                                ErrorMessage="Hãy nhập nội dung " SetFocusOnError="True" ControlToValidate="txtQuestion"></asp:RequiredFieldValidator>
                            <%
                            Else
                            %>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCustomerName"
                                ErrorMessage="Please enter your name" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please enter your email"
                                SetFocusOnError="True" Display="None" ControlToValidate="txtCustomerEmail"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtCustomerEmail"
                                ErrorMessage="Email format is incorrect" Display="None" SetFocusOnError="True"
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" Display="None" runat="server"
                                ErrorMessage="Please enter the content " SetFocusOnError="True" ControlToValidate="txtQuestion"></asp:RequiredFieldValidator>
                            <%
                            End If%>
                        </div>
                        <div class="lblEdit">
                            <asp:Label ID="lblCustomerAddress_edit" runat="server" Text="Địa chỉ:" CssClass="control-lable"/>
                        </div>
                        <div style="height: 40px">
                            <asp:TextBox ID="txtCustomerAddress" CssClass="TextBox form-control" runat="server"
                                Text="" Width="350px" />
                        </div>
                        <div class="lblEdit">
                            <asp:Label ID="lblCustomerEmail_edit" runat="server" Text="Email:" />
                        </div>
                        <div style="height: 40px">
                            <asp:TextBox ID="txtCustomerEmail" CssClass="TextBox form-control" runat="server"
                                Text="" Width="350px" /><span class="fieldRequired">&nbsp;</span>
                        </div>
                        <div class="lblEdit">
                            <asp:Label ID="lblCustomerPhone_edit" runat="server" Text="Số điện thoại:" />
                        </div>
                        <div style="height: 40px">
                            <asp:TextBox ID="txtCustomerPhone" CssClass="TextBox form-control" runat="server"
                                Text="" Width="350px" MaxLength="20" onkeypress="javascript: return isNumberKey(event);" />
                            &nbsp;&nbsp;</div>
                        <div class="lblEdit">
                            <asp:Label ID="lblCustomerNote_edit" runat="server" Text="Nội dung:" /><span class="fieldRequired">&nbsp;</span>
                        </div>
                        <div>
                            <asp:TextBox ID="txtQuestion" CssClass="TextBox form-control" runat="server" Text=""
                                TextMode="MultiLine" Height="102px" Width="350px" />
                        </div>
                        <div style="padding-top: 5px">
                            <div class="btnOrange">
                                <asp:Button ID="btnSave" runat="server" Text=" Gửi " CssClass="btn btn-primary" />
                                <%  If Session("LanguageId") = 1 Then
                                %><input type="reset" value="Đặt lại" class="btn btn-primary" /><%
                                                                                                Else
                                %><input type="reset" value="Reset" class="btn btn-primary" /><%
                                                                                              End If%>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
